package com.biz.primus.ms.payment.dao.po;

import com.biz.primus.model.payment.enums.WechatPayResultCode;
import com.biz.primus.model.payment.enums.WechatTradeType;
import java.sql.Timestamp;
import javax.persistence.*;
import lombok.Data;

@SuppressWarnings("serial")
@Entity
@Table(name = "payment_wechat_log")
@PrimaryKeyJoinColumn(name = "id", referencedColumnName = "id")
@Data
public class WechatPaymentLogPo extends PaymentLogPo {

    @Enumerated(EnumType.STRING)
    private WechatPayResultCode resultCode;

    @Column(length = 16)
    private String errCode;

    @Column(length = 128)
    private String errCodeDes;

    @Column(length = 128)
    private String openid;

    @Column(length = 16)
    @Enumerated(EnumType.STRING)
    private WechatTradeType tradeType;

    @Column(length = 16)
    private String bankType;

    private Integer totalFee;

    @Column(length = 8)
    private String feeType;

    private Integer cashFee;

    @Column(length = 16)
    private String cashFeeType;

    private Integer couponFee;

    private Integer couponCount;

    @Column(length = 20)
    private String couponId;

    private String attach;

    private Timestamp timeEnd;

}